package com.ruoyi.back.service.impl;

import java.util.List;

import com.ruoyi.back.domain.IndexTrain;
import com.ruoyi.back.mapper.IndexTrainMapper;
import com.ruoyi.back.service.IIndexTrainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 首页培训风采Service业务层处理
 * 
 * @author luguanqing
 * @date 2021-04-06
 */
@Service
public class IndexTrainServiceImpl implements IIndexTrainService
{
    @Autowired(required = false)
    private IndexTrainMapper indexTrainMapper;

    /**
     * 查询首页培训风采
     * 
     * @param id 首页培训风采ID
     * @return 首页培训风采
     */
    @Override
    public IndexTrain selectIndexTrainById(String id)
    {
        return indexTrainMapper.selectIndexTrainById(id);
    }

    /**
     * 查询首页培训风采列表
     * 
     * @param indexTrain 首页培训风采
     * @return 首页培训风采
     */
    @Override
    public List<IndexTrain> selectIndexTrainList(IndexTrain indexTrain)
    {
        return indexTrainMapper.selectIndexTrainList(indexTrain);
    }

    /**
     * 新增首页培训风采
     * 
     * @param indexTrain 首页培训风采
     * @return 结果
     */
    @Override
    public int insertIndexTrain(IndexTrain indexTrain)
    {
        return indexTrainMapper.insertIndexTrain(indexTrain);
    }

    /**
     * 修改首页培训风采
     * 
     * @param indexTrain 首页培训风采
     * @return 结果
     */
    @Override
    public int updateIndexTrain(IndexTrain indexTrain)
    {
        return indexTrainMapper.updateIndexTrain(indexTrain);
    }

    /**
     * 批量删除首页培训风采
     * 
     * @param ids 需要删除的首页培训风采ID
     * @return 结果
     */
    @Override
    public int deleteIndexTrainByIds(String[] ids)
    {
        return indexTrainMapper.deleteIndexTrainByIds(ids);
    }

    /**
     * 删除首页培训风采信息
     * 
     * @param id 首页培训风采ID
     * @return 结果
     */
    @Override
    public int deleteIndexTrainById(String id)
    {
        return indexTrainMapper.deleteIndexTrainById(id);
    }
}
